package com.yuntsg.ruiijn.paperana.test;

import com.yuntsg.ruiijn.service.ManualCheckService;
import lombok.SneakyThrows;

import java.util.Calendar;

/**
 * @Author: gcr
 * @Date: 2023/9/6 16:40
 */
public class test2 {
    @SneakyThrows
    public static void main(String[] args) {

//        List<String> a = new ArrayList<>();
//        a.add("1");
//        a.add("12");
//        a.add("13");
//        a.add("14");
//        List<String> strings = a.subList(0, 3);
//        System.out.println(strings);
//
//        Calendar calendar = Calendar.getInstance();
//        String date = "" + calendar.get(Calendar.YEAR) + (calendar.get(Calendar.MONTH) + 1) + calendar.get(Calendar.DATE);
//        System.out.println(date);

        Calendar calendar = Calendar.getInstance();
        String date = "" + calendar.get(Calendar.YEAR) + (calendar.get(Calendar.MONTH) + 1) + calendar.get(Calendar.DATE);
        System.out.println(date);

        String doi = "10.21203/rs.3.rs-4345913/v1\n";
        String s = ManualCheckService.getdoiTimeYear(doi);
        System.out.println("SSSSSSSSSS" + s + "aaaaaaaaaaaaa");


//        WosBasic wosBasic = new WosBasic();
//        wosBasic.setCPm("25259504");
//        String abase64 = XXTEA.encryptToBase64StringNoSafe(wosBasic.getCPm(), "R0HWlCI3ndd1s8S3");
//
//        String url = "https://www.pubtsg.com/api/getpdfurl.do?unitid=1&type=0&query=" + abase64;
//
//
//        BasicCookieStore cookieStore = new BasicCookieStore();
//        String html = common.proxy.HttpUtil.postHtmlQuanWen(cookieStore, url, "", "");
//        System.out.println(html);


//        File file = new File(path);
//        File[] files = file.listFiles();
//
//        List<File> allPathDic = FileUtils.getAllPathDic(path);
//        System.out.println(allPathDic);
//        for (File file1 : allPathDic) {
//            FileUtil.del(file1);
//        }

//        String filename = "E:\\AD\\ADWDAW\\aaa.log";
//        File file = new File(filename);
//        File path = new File(file.getParent());
//        if (!path.exists()) {
//            path.mkdirs();
//        }
//        System.out.println("???");

//        boolean localLicense = ExtractUtil.getLocalLicense();

//        String filePath = "D:\\Users\\55419\\Desktop\\235.docx";
//
//        Document doc = new Document(filePath);
//        SectionCollection sections = doc.getSections();
//        for (Section section : sections) {
//            ParagraphCollection paragraphs = section.getBody().getParagraphs();
//            for (Paragraph paragraph : paragraphs) {
//                System.out.println(paragraph.getText());
//            }
//
//        }


//        String a11 = "And an overall accuracy of 91.9 has been achieved";
//        String a121 = "The overall accuracy of 98.9 has been achieved";
//        double score2 = Test.getScore2(a11, a121);
////        boolean b = MatchService.checkReferenceExclude(a11);
//        System.out.println(score2);

    }
}
